package com.device.operating.dao;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.device.operating.entity.Usergroup;

public interface UgRepository extends PagingAndSortingRepository<Usergroup, String>{	
	public List<Usergroup> findByGpId(String gpId);
	public List<Usergroup> findByUserId(String userId);
	public Usergroup findByUserIdAndGpId(String userId,String gpId);
	public List<Usergroup> findByRootdpId(String rootdpId);
	public List<Usergroup> findByDpId(String dpId);
}
